<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单</title>
</head>
<body>
<p>用户注册</p>
<form action="https://www.baidu.com" method="get" >
    <label>
        用户名:
        <input type="text" name="username" placeholder="请输入用户名" value="">
        <br>密码:
        <input type="password" name="password" placeholder="请输入密码" value="">
        <br>性别:
        <input type="radio" name="sex" value="boy">男
        <input type="radio" name="sex" value="girl">女
        <br>兴趣:
        <input type="checkbox" name="hobby" value="read">阅读
        <input type="checkbox" name="hobby" value="sing">唱歌
        <input type="checkbox" name="hobby" value="swing">游泳
        <input type="checkbox" name="hobby" value="run">跑步
        <br>专业:
        <select name="type">
            <option value="空"></option>
            <option value="软件工程">软件工程</option>
            <option value="网络工程">网络工程</option>
            <option value="食品工程">食品工程</option>
            <option value="土木工程">土木工程</option>
        </select>
        <br>日期
        <input type="date" name="data">
        <br>
        <button type="submit">确认</button>
    </label>
</form>
</body>
</html>